<%@page import="com.ucap.bbs.util.bean.MessageInfoBean"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><base href="<s:property value="@com.study.portal.util.InitConfig@basePath"/>">
<title>
<s:property	value="@com.study.portal.util.InitConfig@baseTitle" />
</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
</head>
<body>
<s:if test="null!=#session.messageInfoBean">
	<s:set var="bean" value="#session.messageInfoBean"/>
	<% session.removeAttribute("messageInfoBean"); %>
</s:if>
<s:else>
	<s:set var="bean" value="messageInfoBean"/>
</s:else>

	<div style="width: 100%;height: 100%;text-align: center;vertical-align: middle;">
	<s:if test="null!=#bean && #bean.msgs.size()>0">
		<s:property value="#bean.title"/><br/>
		<s:iterator value="#bean.msgs">
			<s:property /><br/>
		</s:iterator>
		<s:if test="#bean.isRedirect==true">
			<br/> 三秒钟后自动跳转<br/>
			<script type="text/javascript">
			//$(document).ready(function() {
				setInterval(function ()
				{
					window.location.href = "<s:property value="#bean.redirect"/>";
				},3000);
			//});
		</script>
		点击这里<a href="<s:property value="#bean.redirect"/>">立即跳转</a>
		</s:if>			
	</s:if>
	</div>
</body>
</html>